<template>
    <el-collapse v-model="activeNames" @change="handleChange">
        <el-collapse-item name="1">
            <template v-slot:title>
                <slot name="title">标题</slot>
            </template>
            
            <slot>数据</slot>
        
        </el-collapse-item>
    </el-collapse>
</template>

<script lang="ts" setup>


const activeNames = ref(['1'])
const handleChange = (val: string[]) => {
    console.log(val)
}
</script>
